package mysql

import "gorm.io/gorm"

type Book struct {
	gorm.Model
	Name string `gorm:"type:varchar(50);not null;"`
}

func (b *Book) BookList() (books []*Book, err error) {
	err = Db.Find(&books).Error
	return
}
